import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/sysUserLoginManage/sysUserLogin",
    method: "post",
    params: {
      manageUserName: data.username,
      password: data.password,
    },
  });
}
// 获取授权菜单
export function getMenu(token) {
  return request({
    url: "/sysMenuManage/dynamicRouteMenu",
    method: "get",
    params: { token },
  });
}
// 登出
export function logout() {
  return request({
    url: "/sysUserLoginManage/sysUserLogout",
    method: "post",
  });
}
